home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 271_02 / screen.h < prev    next >
Text File  |  1988-03-30  |  2KB  |  56 lines

  1. /*
  2. **          SM.LIB  function source code for Turbo-C
  3. **  Copyright 1988, S.E. Margison
  4. **
  5. **  FUNCTION: screen.h
  6. ** extra defines for screen handling operations
  7. */
  8.  
  9. #define BW40 0   /* b&w 40 x 25 screen */
  10. #define CLR40 1  /* color 40 x 25 screen */
  11. #define BW80 2   /* b&w 80 x 25 screen */
  12. #define CLR80 3  /* color 80 x 25 screen */
  13. #define CG320 4  /* color graphics, 320 x 200 */
  14. #define BW320 5  /* b&w graphics, 320 x 200 */
  15. #define BW640 6  /* b&w graphics, 640 x 200 */
  16. #define MONO 7   /* 80 x 25 b&w using Monochrome card */
  17.  
  18. /* video attributes */
  19. #define BLINKING 0x87
  20. #define REVERSE 0x70
  21. #define REVBLINK 0xf0
  22. #define NORMAL 0x07
  23. #define HIGHLITE 0x0f
  24. #define HIGHBLINK 0x8f
  25. #define BLINKBIT 0x80   /* OR in to cause blink */
  26. #define HILTBIT 0x08    /* OR in to cause highlight */
  27.  
  28. /* colors -- Use as is for foreground colors
  29. **           For background, shift left by 4 and OR with
  30. **           foreground and possible video attributes
  31. ** NOTE the change in the "white" colors due to a naming
  32. ** conflict with the 1.5 version of Turbo-C.  They and I
  33. ** don't agree on what "white" really is!
  34. */
  35. #define BLACK 0
  36. #define BLUE 1
  37. #define GREEN 2
  38. #define CYAN 3
  39. #define RED 4
  40. #define MAGENTA 5
  41. #define BROWN 6
  42.  
  43. #ifndef WHITE
  44. #define WHITE 7
  45. #endif
  46. #define LOWHITE 7
  47.  
  48. #define GRAY 8
  49. #define LTBLUE 9
  50. #define LTGREEN 10
  51. #define LTCYAN 11
  52. #define LTRED 12
  53. #define LTMAGENTA 13
  54. #define YELLOW 14
  55. #define HIWHITE 15    /* hi-intensity white */
  56.